<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    const name = "amdin";
    const age = 18;

    const obj = {
        name,
        age,
        show(){
            console.log(this)
        },
        fn:()=>{
            console.log(this);
        }
    }

    console.log(obj)
    obj.show();
    obj.fn();
    
</script>
</html>